package com.qys.training.biz.auth.service;

import com.itextpdf.text.DocumentException;
import com.qys.training.base.dto.PDFTextConfig;

import java.io.IOException;

public interface ItextService {
    /**
     * 操作pdf 向其中添加文字水印
     * @param id
     * @param config
     * @return
     * @throws IOException
     * @throws DocumentException
     */
    int addText(Long id, PDFTextConfig config) throws IOException, DocumentException;
}
